<?php
/**
 * 具体策略角色 division Operator
 * @author Kenny Wang
 */
class Div implements Operation {

	public function op($a, $b)
	{
		if($b == 0 ) 
			echo "除数不能为0！\n";
		else
		{
			$result = $a/$b;
			echo "$a/$b=$result\n";
		}
	}
}